package com.car.carmgr.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("err")
public class ErrorController {

    @RequestMapping("indexInit")
    public String indexInit(){
        int i = 10/0;
        return "index";
    }

    @RequestMapping("index2")
    public String index2(){
        return "system/index2";
    }

    @RequestMapping("indexJson")
    @ResponseBody
    public Object indexJson(){
        int i = 10/0;
        return "1111";
    }
}
